<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="com.zenika.supbook.model.User" %>
<%@ page import="java.util.List" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Recherche</title>
</head>
<body>
<table>
	<tr>
		<td><jsp:include page="/public/menu.jsp" /></td>
		<td>
			<form method="post" action="search.jsp">
				<input type="text" name="search" />
				<input type="submit" value="Valider" />
			</form>
		</td>
	</tr>
</table>


<div>
<ul>
<% if(request.getAttribute("users") != null) { %>
<% for(User user : (List<User>) request.getAttribute("users")) { %>
	<li>
		<h3><%= user.getLogin() %></h3>
		<span><%= user.getFirstName() + " " +user.getLastName() %></span>
	</li>
<% } %>
<% } %>
</ul>
</div>
</body>
</html>